package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用来给对应的学习内容出题对象 exam
 * 
 * @author admin
 * @date 2024-03-09
 */
public class Exam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 答题ID */
    private Long examId;

    /** 内容ID */
    @Excel(name = "内容ID")
    private Long contentId;

    /** 答题人ID */
    @Excel(name = "答题人ID")
    private Long creatorId;

    /** 问题 */
    @Excel(name = "问题")
    private String question;

    /** 内容标题 */
    @Excel(name = "内容标题")
    private String contentTitle;

    /** 出题人姓名 */
    @Excel(name = "内容标题")
    private String userName;

    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }

    public String getContentTitle() {
        return contentTitle;
    }

    public void setContentTitle(String contentTitle) {
        this.contentTitle = contentTitle;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Exam{" +
                "examId=" + examId +
                ", contentId=" + contentId +
                ", creatorId=" + creatorId +
                ", question='" + question + '\'' +
                ", contentTitle='" + contentTitle + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
